function [ Degree_initial, Candidate_initial ] = degree_candidate( SINRinfo_db )
global userNum MBSnum PBSnum FBSnum  BSnum userinfo pn
Candidate_intial=zeros(userNum,MBSnum+PBSnum+FBSnum);
Degree_initial=zeros(1,userNum);


for i=1:userNum 
    SINR_target=userinfo(i,3);
    fjm=SINRinfo_db(i,:).*pn;
    ffjm=find(fjm==0);
    fjm(ffjm)=-inf;
    index=find(fjm>SINR_target);
    Degree_initial(i)=size(index,2);
    Candidate_initial(i,1:Degree_initial(i))=index;    

end
